package com.jiangyifen.robot.consts;

public enum ErrCode {

	OK("0", "SUCCESS"), 
	NO_LICENSE("-1", "未授权，请联系：13391026171 江毅奋"), 
	
	INVALID_SIGN("-10000", "非法签名"), 
	INVALID_JSON_FORMAT("-10001", "非法的JSON格式"), 
	NO_COMMAND_FIELD("-10002", "缺少command字段"), 
	UNKNOW_COMMAND("-10003", "未知的命令,请检查URL中的命令名"),
	NO_TIMESTAMP_FIELD("-10004", "缺少timestamp字段"),
	TIMESTAMP_EXPIRED("-10005", "您的时间戳与系统的时间误差超过了60秒。请检查系统时间是否准确。您可以通过配置ntp服务校正系统时间"),
	NO_KEY_FIELD("-10006", "缺少必填字段"),
	
	WRONG_VALUE("-20000", "参数值有误"),
	
	ORIGINATE_TOO_FAST("-30000", "呼叫速度过快"),
	
	EMPTY_RESULT("-30001", "未查询到相关数据"),
	NO_SIPPHONE_FOUND("-30002", "没有找到SIP分机"),
	NO_CONNECTED_CHANNEL("-30003", "没有对端channel"),
	
	NO_TTS_SELECT("-30004", "未设置使用的TTS版本"),
	NO_TTS_INVALID("-30005", "设置使用的TTS无效"),
	NO_TTS_FAIL("-30006", "TTS语音合成失败"),
	
	AUTHENTICATION_FAIL("-50000","sdk secretKey error"),
	UNKNOW_ERROR("-99999", "未知错误"),
	;

	private String errcode;
	private String errmsg;

	private ErrCode(String errcode, String errmsg) {
		this.errcode = errcode;
		this.errmsg = errmsg;
	}

	public String getErrcode() {
		return errcode;
	}

	public String getErrmsg() {
		return errmsg;
	}

}
